﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using SmartProject.Entity;

using FluentNHibernate.Mapping;

namespace SmartProject.Mapping
{
    public class FileTypeMap : ClassMap<FileType>
    {
        public FileTypeMap()
        {
            Table("SmartProject_FileType");
            Id(x => x.Id).Column("FileTypeId");
            Map(x => x.Description)
                .Length(100)
                .Not.Nullable();
            Map(x => x.Extension)
                .Length(10)
                .Not.Nullable();
            Map(x => x.Active).Not.Nullable();
            Map(x => x.Created).Not.Nullable();
        }
    }
}
